local InnerDataManager = require("innerdata.InnerDataManagerFL")
local InnerDefine = require("innerdata.Define")
local CopyHandler = require("copy.HandlerL")
local CopyDefine = require("copy.Define")
local OfficialLogic = require("official.OfficialLogic")

function startPk(human, targetUuid)
    if human._id == targetUuid then
       return
    end
    InnerDataManager.Send2WInnerData(human, InnerDefine.INNERDATA_TYPE_OFFLINE_PK_START, {uuid=targetUuid})
    CopyHandler.copyEnter(human, CopyDefine.COPY_OFFLINE_PK_ID)
    OfficialLogic.checkOneCondition(human, "PKTimes")
end

function decCD(human)
     InnerDataManager.Send2WInnerData(human, InnerDefine.INNERDATA_TYPE_OFFLINE_PK_DATA, {decCD = 1})
end

function updateSelfInfo(human)
    InnerDataManager.Send2WInnerData(human, InnerDefine.INNERDATA_TYPE_OFFLINE_PK_DATA)
end